<%--
  Author: Don Li
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<body>

<form id="reset" action="<%= request.getContextPath()%>/oauth2/reset" method="get">
    <input type="submit" value="reset">
</form>

<h3>User-Agent Flow</h3>

<form id="userAgentFlow" action="<%= request.getContextPath()%>/oauth2/quota" method="get">
    <input type="submit" value="start">
</form>

<h3>Device Flow</h3>

<a target="_blank" href="<%= request.getContextPath()%>/device_flow.jsp">start</a>

<form id="continueDeviceFlow" action="<%= request.getContextPath()%>/oauth2/quota/device" method="get">
    <label>
        code:
        <input type="text" name="code">
    </label>
    <label>
        state:
        <input type="text" name="state">
    </label>
    <input type="submit" value="continue">
</form>

<h3>Client Credentials Flow</h3>

<form id="clientCredentialsFlow" action="<%= request.getContextPath()%>/oauth2/quota/credential" method="get">
    <input type="submit" value="start">
</form>

<h3>--------------------------------------------------</h3>

<h3>QTO Device Flow</h3>

<a target="_blank" href="<%= request.getContextPath()%>/qto_device_flow.jsp">start</a>

<form id="continueQtoDeviceFlow" action="<%= request.getContextPath()%>/oauth2/qto/qtodevice" method="get">
    <label>
        code:
        <input type="text" name="code">
    </label>
    <label>
        state:
        <input type="text" name="state">
    </label>
    <input type="submit" value="continue">
</form>

</body>
</html>
